def is_spam(number: str) -> bool:
    country, area, local = number.split()
    area = int(area.strip('()'))
    if len(country) > 3 or country[1] != '0':
        return True
    if area > 900 or area < 200:
        return True
    nums = {}
    for char in number:
        if char in '() -0':
            continue
        nums[char] = nums.get(char, 0) + 1
    if max(nums.values()) >= 4:
        return True
    
        
    return False


if __name__ == '__main__':
    is_spam("+0 (955) 234-4364")
    print(is_spam("+0 (200) 234-0182"))